<div class="request-popup popup-wrapper">
	<div class="popup items-show-popup">
		<div class="list">
			<div class="available-items">
				@if($items->isEmpty())
					<p>No hay items en esta localización.</p>
				@else
					@foreach($items as $item)
						<div class="item">
							<div class="info">
								<div class="reference"><span class="label">Referencia: </span>{{$item->reference}}</div>
								<div class="name"><span class="label">Nombre: </span>{{$item->name}}</div>
								<div class="price"><span class="label">Precio c/u: </span>{{$item->formattedPrice()}}</div>
								<div class="request"><span class="label">Cantidad: </span>{{$item->amount}}</div>
							</div>
							<div class="picture">
								<img src="{{File::exists(public_path().$item->image_url) ? $item->image_url : '/img/no-pic.png'}}" />
							</div>
							
						</div>
					@endforeach
				@endif
			</div>
		</div>
		<div class="to-request">
		</div>
		<div class="buttons">
		</div>
		<div class="options"><a href="#" class="close-btn">Cerrar</a></div>
	</div>
</div>